<!DOCTYPE html>
<html>
<head>
	<title>参数管理</title>
	<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">

			<div class="form-group col-md-8">
				<#if shiro.hasPermission("tea:scientific:dept")>
				<div class="col-sm-3">
					<select    v-model="p.deptId"  style="width:160px;"  class="form-control" >
						<option value="" selected>选择部门</option>
						<option v-for="(item,index) in dmoptions" :key="index"  :value='item.deptId'>{{item.name}}</option>
					</select>
				</div>
				</#if>
			<#if shiro.hasPermission("tea:scientific:username")>
				<div class=" col-sm-6" >
					<input style="width:140px;" type="text" class="form-control" v-model="p.username"  placeholder="教师姓名">
				</div>
		    </#if>
			</div>

	    <#if shiro.hasPermission("tea:scientific:btn")>
		<a class="btn btn-default" @click="query">查询</a>
        </#if>
		<#if shiro.hasPermission("tea:scientific:excel")>
		<a class="btn btn-primary" @click="excel"><i class=""></i>&nbsp;导出</a>
		</#if>
        <#if shiro.hasPermission("tea:scientific:add")>
		<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>
        </#if>
         <#if shiro.hasPermission("tea:scientific:edit")>
			<a class="btn btn-primary" @click="edit"><i class="fa fa-plus"></i>&nbsp;修改</a>
         </#if>
         <#if shiro.hasPermission("tea:scientific:del")>
			<a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
          </#if>


		</div>
		<table id="jqGrid"></table>
		<div id="jqGridPager"></div>
	</div>
	<div v-show="!showList" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
			<div class="form-group">
				<div class="col-sm-2 control-label">项目成果名称</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="scientific.scientificName" placeholder="项目成果名称"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">转化金额（万元）</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="scientific.price" placeholder="转化金额（万元）"/>
				</div>
			</div>
			<div class="form-group">
				<div class="col-sm-2 control-label">类别</div>
				<div class="col-sm-10">
					<select  v-model="scientific.scientificKindId"    class="form-control" >
						<option value="" selected>选择类别</option>
						<option v-for="(item,index) in kdoptions" :key="index"  :value='item.id' >{{item.value}}</option>
					</select>
				</div>
			</div>




			<div class="form-group">
				<div class="col-sm-2 control-label">参与学生数</div>
				<div class="col-sm-10">
					<input type="text" class="form-control" v-model="scientific.stuCount" placeholder="学生数"/>
				</div>
			</div>




			<div class="form-group">
				<div class="col-sm-2 control-label"></div>
				<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>
				&nbsp;&nbsp;<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>
</div>
<script src="${request.contextPath}/statics/js/modules/tea/scientific.js?_${.now?long}"></script>
</body>
</html>